package experiment1_bag;
import java.util.Scanner;
public class analyze_2 {
    public static void main(String[] args) {
        {
           Scanner sc = new Scanner(System.in);
           System.out.println("请输入一个三位的数字：");
           int a=sc.nextInt();
           //计算a的个位，十位，百位
           int a_ge=a%10;
           int a_shi=a/10%10;
           int a_bai=a/100;
           //倒序
           int b=a_ge*100+a_shi*10+a_bai;
           System.out.println("倒序之后为："+b);
        }
    }
}
